package behavioral.mediator.self;

public class ConcreteColleague implements Colleague {
	private Mediator mMediator;

	public ConcreteColleague(Mediator mediator) {
		mMediator = mediator;
		mediator.addColleague(this);
	}

	@Override
	public void action() {
		System.out.println("action" + "(" + this + ")");
		mMediator.informs();
	}

	@Override
	public void updates() {
		System.out.println("update" + "(" + this + ")");
	}
}
